package com.mikufufu.blog.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Data;

/**
 * 文章标签关系表
 * 
 */
@Data
@TableName(value = "blog_article_tag")
public class ArticleTag implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "文章标签关系主键")
    private Integer id;

    /**
     * 标签id
     */
    @TableField(value = "tag_id")
    @ApiModelProperty(value = "标签id")
    private Integer tagId;

    /**
     * 文章id
     */
    @TableField(value = "article_id")
    @ApiModelProperty(value = "文章id")
    private Integer articleId;

    private static final long serialVersionUID = 1L;
}